package plug;

import creatures.IStrategyNbPlants;

public class NbProportional implements IStrategyNbPlants {
	private int nbPlants;
		
	public NbProportional(double surface,double pourcentage) {
		this.nbPlants = (int) ((surface / ( CreaturePluginFactory.MAX_CREATURE * CreaturePluginFactory.MAX_CREATURE)) * (pourcentage / 100));
	}
	@Override
	public int getNbPlant() {
		return nbPlants;
	}

}
